﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AlgoritmenEindCase
{
    public class Bord
    {
        int[,] veld;
        int zwartestenen;
        int wittestenen;

        public Bord()
        {
            veld = new int[10, 10];
            zwartestenen = 20;
            wittestenen = 20;

            SetStartPosities();
        }

        private void SetStartPosities()
        {
            for (int i = 0; i < 10; i++)
            {
                for (int j = 0; j < 10; j++)
                {
                    veld[i, j] = 0;
                }
            }

            for (int i = 0; i < 10; i++)
            {
                for (int j = 0; j < 10; j++, j++)
                {
                    if (zwartestenen != 0)
                    {
                        veld[i, j] = 2;
                    }
                    else
                    {
                        if (i > 6)
                        {
                            if (wittestenen != 0)
                            {
                                veld[i, j] = 1;
                            }
                        }
                    }
                }
            }
        }
    }
}
